<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>product</title>
    <!-- 引入mui的样式 -->
    <link rel="stylesheet" href="./assets/mui/css/mui.css">
    <link rel="stylesheet" href="./assets/fontAwesome/css/font-awesome.css">
    <!-- 公共样式 -->
    <link rel="stylesheet" href="./css/common.css">
    <!-- 首页 自己的样式 -->
    <link rel="stylesheet" href="./css/product.css">
</head>

<body>
    <!-- 头部 -->
    <header id="header" class="mui-bar mui-bar-nav">
        <a href="javascript:history.back();" class="fa fa-arrow-left h_left"></a>
        <span>商品详情</span>
        <a href="javascript:;" class="fa fa-home h_right"></a>

    </header>
    <!-- 内容 -->
    <div class="lt_view">
        <div class="lt_contain">


        </div>
    </div>
    <!-- 尾部 -->
    <div class="foot">
        <span class="fa fa-cart-plus buy"></span>
        <div class="addInCart">加入购物车</div>
        <div class="rightNowBuy">立刻购买</div>
    </div>

    <script type="text/html" id="mainTpl">
        <div class="goods_slides">
            <div class="mui-slider">
                <div class="mui-slider-group mui-slider-loop">
                    <!--支持循环，需要重复图片节点-->
                    <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="{{pic[pic.length-1].picAddr}}" /></a></div>
                    {{each pic value index}}
                    <div class="mui-slider-item"><a href="#"><img src="{{value.picAddr}}" /></a></div>
                    {{/each}}
                    <!--支持循环，需要重复图片节点-->
                    <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="{{pic[0].picAddr}}" /></a></div>
                </div>
                <div class="mui-slider-indicator">
                    {{each pic value index}} 
                    {{if index==0}}
                    <div class="mui-indicator mui-active"></div>
                    {{/if}} 
                    {{if index!=0}}
                    <div class="mui-indicator"></div>
                    {{/if}}
                    {{/each}}
                </div>
            </div>
        </div>
        <div class="productName">
            <span> {{proName}}</span>
        </div>
        <div class="productPrice">
            <span>价格:</span>
            <span class="nowPrice">&yen;{{price}}</span>
            <del class="oldPrice">&yen;{{oldPrice}}</del>
        </div>
        <div class="productSize">
            <span>尺码:</span>
            {{each sizeArr value}}
            <button class="size_btn">{{value}}</button>
            {{/each}}
        </div>
        <div class="productNum">
            <span>数量</span>
            <div class="mui-numbox" data-numbox-step='1' data-numbox-min='1' data-numbox-max='{{num}}'>
                <button class="mui-btn mui-numbox-btn-minus" type="button">-</button>
                <input class="num_val mui-numbox-input" value='1' type="number" />
                <button class="mui-btn mui-numbox-btn-plus" type="button">+</button>
            </div>
            <span>剩余:</span>
            <span>{{num}}件</span>
        </div>
    </script>
</body>
<!-- mui js  不依赖其他 -->
<!-- bootstrap- 基于jquery -->
<script src="./assets/mui/js/mui.js"></script>
<script src="./assets/arttemplate/template-web.js"></script>
<!-- zepto 方面我们自己开发 -->
<script src="./assets/zepto/zepto.js"></script>
<!-- 公共的js common.js -->
<script src="./js/common.js"></script>
<!-- 自己的js index.js -->

<!-- 自己的js search.js -->

<script src="./js/product.js"></script>

</html>